;; 实现一个尾递归

(ns recursion)

(defn Example []
  (loop [i 0] ;; i的初始值为0
    (when (< i 5) ;; 判断i<5
      (println i)
      (recur (inc i))))) ;; ecur语句用于更改变量“i”的值，让i自增1。尾递归中recur要放在最后进行评估

(Example)
